
const state = {
  bufferTag: [],
  bufferPoster: []
};

const mutations = {
  SETTING_TAG_BUFFER: (state, data) => {
    if (typeof data === 'string') {
      data = data.split(',');
    }
    state.bufferTag = data;
  },
  SETTING_POSTER_BUFFER: (state, data) => {
    state.bufferPoster = data;
  }
};

const actions = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
